package chabernac.android.wordbattle.rastersolver;

import junit.framework.TestCase;

public class TrieNodeTest extends TestCase {
  public void testTrie(){
    TrieNode theRootNode = new TrieNode();
    theRootNode.insert("hopla");
    theRootNode.insert("guy");
    theRootNode.insert("hopza");
    
    assertTrue(theRootNode.containKey("hopla"));
    assertTrue(theRootNode.containKey("guy"));
    assertTrue(theRootNode.containKey("hopza"));
    
    assertTrue(theRootNode.containPrefix("hop"));
  }
}
